Adds sendtoaddress options comments, subtractfeefromamount#89
Conversation
|
Hmm, I'm a bit hesitant to remove pre-v0.11 functionality just yet for something as basic as sending funds. In other RPC calls, for example sendrawtransaction, I've maintained backwards compatibility by only including the option if the non-default is set. OTOH the alternative is something like doing: and then call sendtoaddress with something like: with optional_args built up from what args are set. That's kinda complex and seems error prone, particularly going forward. :( |
|
Will take a look at building it like you said to retain pre-0.11 compatibility (I straight up added it because in your Readme.md it said it was targeting 0.11 anyway :) ) as I agree it would be good the retain past version compatibility. Looking for some information on popularity of Bitcoind versions. Will update when I find out more. |
bd200a0 Adds subtractfeefromamount to sendmany and sendtoaddress calls (ddrager)
|
Merged - we're not longer supporting pre-v0.11 anyway. |
…romamount ef9c592 Adds subtractfeefromamount to sendmany and sendtoaddress calls (ddrager)
This pull request fills out newly added option subtractfeefromamount introduced in Bitcoin 0.11. It is used in the sendmany and sendtoaddress calls and will subtract the transaction fee from the amount rather than adding it on top of it. Since the target bitcoin version is 0.11 this should be safe for installs.
Without adding these options it will retain existing functionality. Also had to add the comment parameters for sendtoaddress which were missing.
Ran the runtests.sh for this pull request, not sure what this all means, but the changes are simple and I've tested on my app.
Should be straightforward but let me know if you have any questions.